/*
 *  Jiki - a small lightweight wiki engine.
 *
 *  Copyright 2008 Peter Halbmayer <phalbmayer@gmail.com
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2, or (at your option)
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 */


package at.pmsa.jiki;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;


public class Jiki extends Activity{
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle){
        super.onCreate(icicle);
        
        TextView tv = new TextView(this);
        tv.setText("jiki service started");
        
        setContentView(tv);
               
        startService(new Intent(Jiki.this, JHTTPServer.class), icicle);

        JHTTPServer.init(this);    	
    }
    
//    public void onStart(){
//    }
//    
//    public void onDestroy(){
//    	
//    }
    
//    public static void start(){
//    	int port = 5000;
//		(new Thread(new JHTTPServer(port), "JHTTPServer")).start();
//		while(true);
//    }

//	@Override
//	public IBinder getBinder() {
//		// TODO Auto-generated method stub
//		return null;
//	}
}